package com.bjsdzk.collector.serviceImp;

import com.bjsdzk.collector.entity.model.ExceColleContr;
import com.bjsdzk.collector.entity.model.ParamsSetting;
import com.bjsdzk.collector.mapper.ExceColleContrMapper;
import com.bjsdzk.collector.mapper.ParamsSettingMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class ParamsSettingService {
    @Autowired
    private ParamsSettingMapper paramsSettingMapper;

    /**
     * @return
     */
    @Cacheable(value="cache_ParamsSetting"/*, key="#id"*/)
   public Map<Integer, ParamsSetting> findAll(){
        return paramsSettingMapper.findAll();
    }
}
